package org.gdpu.model;

/**
 * Created by HEWI2 on 1/22/14.
 */
public enum MaintainingState {

    AUDIT{
        public int getMaintainingState(){
            return 0;
        }
    },
    NOT_AUDIT{
        public int getMaintainingState(){
            return 1;
        }
    },
    SOLVED{
        public int getMaintainingState(){
            return 2;
        }
    };

    public abstract  int getMaintainingState();

    @Override
    public String toString() {
        switch (this) {
            case AUDIT:
                return "已审核";
            case NOT_AUDIT:
                return "未审核";
            case SOLVED:
                return "已解决";
            default:
                return "Error";
        }
    }
}
